package com.pagoda.viewfinder_bridge;

import com.pagoda.viewfinder_bridge.provider.IProvider;

/**
 * E-mail: liaohailong190@foxmail.com
 * Date: 2020/7/16 16:21
 * Description:
 *
 * @author liaohailong
 */
public interface Finder<HOST> {
    /**
     * 注册ViewFinder功能
     * 1，findViewById
     * 2,setOnClickListener
     *
     * @param host     持有依赖的宿主
     * @param provider View提供者
     */
    void inject(HOST host, IProvider<?> provider);

    /**
     * 解绑
     *
     * @param host 视图持有宿主
     */
    void unbind(HOST host, IProvider<?> provider);
}
